<include file="public:header" />
<script charset="utf-8" src="__STATIC__/js/jquery.js" type="text/javascript"></script>
<!--添加商品-->
<div class="subnav">
    <h1 class="title_2 line_x">前台页面配置</h1>
</div>
<form id="info_form" action="{:u('save')}" method="post">
    <input name="id" value="{$id}" type="hidden"/>
    <div class="pad_lr_10">
        <div class="col_tab">

            <div class="J_panes">
                <div class="content_list pad_10">
                    <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
                        <tr>
                            <th>搜索提示词 :</th>
                            <td><input type="text" name="searchTip" id="J_searchTip"
                                       class="input-text" size="60" value="{$config->searchTip}"></td>
                        </tr>
                        <tr>
                            <th>微信分享内容 :</th>
                            <td>
                                <textarea name="wechat" id="J_wechat" cols="60" rows="3">{$config->wechat}</textarea>
                            </td>
                        </tr>
                    </table>
                </div>

            </div>
            <div class="mt10"><input type="submit" value="{:L('submit')}" class="btn btn_submit"></div>
        </div>
    </div>
    <input type="hidden" name="menuid"  value="{$menuid}"/>
</form>

<include file="public:footer" />
<script type="text/javascript">
    $(function() {
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_searchTip").formValidator({onshow:'请填写搜索提示词，多个词以空格分隔',onfocus:'请填写搜索提示词，多个词以空格分隔'}).inputValidator({min:1,onerror:'请填写搜索提示词'});
        $("#J_wechat").formValidator({onshow:'请填写微信分享内容',onfocus:'请填写微信分享内容'}).inputValidator({min:1,onerror:'请填写微信分享内容'});
    });
</script>

</body>
</html>